﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace nxt
{
    public partial class comPort : Form
    {
        static string write;
        public comPort()
        {
            InitializeComponent();
            
        }

        private void button1_Click(object sender, EventArgs e)
        {

            StreamWriter rs;
            try
            {
                rs = new StreamWriter("comPort.nxt");
                write = textBox1.Text + "," + textBox2.Text;
                rs.WriteLine(write);
                rs.Close();
            }
            catch
            {
              //
            }      
            this.Close();
        }
    }
}
